<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>影院-郫县电影</title>
<link rel="short icon"  href="/photo/head.png"/>
</head>
<body>
	<table>
			<thead>
				<tr>
					<th>电影名称</th>
					<th>导演</th>
					<th>封面</th>
					<th>类型</th>
					<th>主演</th>
					<th>国家</th>
					<th>影片时长</th>
					<th>上映时间</th>
					<th>评分</th>
					<th>介绍</th>
					<th>是否热映</th>
				</tr>
			</thead>
			<tbody>
			
					<td>${requestScope.film.filmName }</td>
					<td>${requestScope.film.director }</td>
					<td><img src=${requestScope.film.cover }></td>
					<td>${requestScope.film.type }</td>
					<td>${requestScope.film.leads }</td>
					<td>${requestScope.film.country }</td>
					<td style="width:70px">${requestScope.film.filmLength }分钟</td>
					<td style="width:100px">${requestScope.film.releaseDateString }</td>
					<td>${requestScope.film.score }</td>
					<td style="width:350px">${requestScope.film.introduction }</td>
					<td>${requestScope.film.reying }</td>
						
					</tr>
				
				<!--<tr>
					<td>
						<a href="/filmFindAll">返回主界面</a>
					</td>
				</tr>-->
			</tbody>
	</table>
	</br>
	</br>

	<form action="/use/find/cinemaschedule" method="get" >
		<input type="radio" name="cinemaName1" checked="checked" value="全部">全部</br>
		<c:forEach items="${requestScope.cinemanames }" var="c">
			<input type="radio" name="cinemaName1" value="${c}">${c}  </br>
		</c:forEach>
	
		</br>
		<input type=date name="filmBeginTime"/>
		</br>
		<input type="submit" value="搜索">
	</form>
	
	<table>
		<thead>
			<tr>
				<th>影院名称</th>
				<th>影院地址</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${requestScope.cinemas }" var="a">
				
				<tr>	
					<td>${a.cinemaName.cinemaName }</td>
					<td>${a.cinemaName.address}</td>		
					<td>
						<form action="/user/select/paipian" method="post">
							<input type="hidden" name="cinemaName" value="${a.cinemaName.cinemaName}" />
							<input type="hidden" name="cinemaAddress" value="${a.cinemaName.address}" />
							<c:choose>
								<c:when test="${a.cinemaName.cinemaName == null }"></c:when>
								<c:otherwise>
									<input type="submit" value="购买" />
								</c:otherwise>
							</c:choose>
							
						</form>
					</td>
				</tr>
				
			</c:forEach>
			<tr>
				<td>
					<a href="/user/select/movie">返回主界面</a>
				</td>
			</tr>
		</tbody>
	</table>
</body>
</html>